package com.io;

import java.io.FileInputStream;
import java.io.FileOutputStream;

public class copy_picture {
  public static void main(String[] args) throws Exception{
    //
      FileInputStream fis = null;
      FileOutputStream fos = null;
      try{
          fis = new FileInputStream("/Users/edz/Desktop/BY2151-zmq/src/main/java/文稿/1.jpg");
          fos = new FileOutputStream("/Users/edz/Desktop/BY2151-zmq/src/main/java/文稿/2.jpg");
          int temp;
          while ((temp = fis.read()) != -1){
              fos.write(temp);
          }
          fos.flush();
      }finally{
          fis.close();
          fos.close();
      }
  }
}
